package view;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.LineBorder;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ServerViewPanelCarModel extends javax.swing.JPanel {
	
	private static final long serialVersionUID = 1L;
	
	private JPanel jPanel1;
	private JButton jButtonClear;
	private JButton jButtonConfirm;
	private JPanel jPanel3;
	private JLabel jLabelTitle;
	private JTextField jTextFieldYear;
	private JLabel jLabelYear;
	private JTextField jTextFieldCarModel;
	private JLabel jLabelCarModel;
	private JTextField jTextFieldManufactorer;
	private JLabel jLabelManufactorer;
	private JPanel jPanel2;

	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	*/
/*	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.getContentPane().add(new ServerViewPanelCarModel());
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}*/
	
	public ServerViewPanelCarModel() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			GridBagLayout thisLayout = new GridBagLayout();
			thisLayout.rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1};
			thisLayout.rowHeights = new int[] {27, 6, 20, 6, 20, 15, 20, 6, 20, 50, 6, 20, 7};
			thisLayout.columnWeights = new double[] {0.0};
			thisLayout.columnWidths = new int[] {420};
			this.setPreferredSize(new java.awt.Dimension(461, 347));
			this.setLayout(thisLayout);
			this.setSize(461, 347);
			{
				jLabelTitle = new JLabel();
				this.add(jLabelTitle, new GridBagConstraints(-1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				jLabelTitle.setText("Cadastro de Modelos de Carro");
				jLabelTitle.setFont(new java.awt.Font("Dialog",1,14));
			}			
			{
				jPanel1 = new JPanel();
				this.add(jPanel1, new GridBagConstraints(-1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				GridBagLayout jPanel1Layout = new GridBagLayout();
				jPanel1Layout.rowWeights = new double[] {};
				jPanel1Layout.rowHeights = new int[] {};
				jPanel1Layout.columnWeights = new double[] {0.0, 0.0, 0.1};
				jPanel1Layout.columnWidths = new int[] {50, 6, 7};
				jPanel1.setLayout(jPanel1Layout);
				jPanel1.setPreferredSize(new java.awt.Dimension(340, 16));
				{
					jLabelCarModel = new JLabel();
					jPanel1.add(jLabelCarModel, new GridBagConstraints(0, -1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jLabelCarModel.setText("Modelo");
				}
				{
					jTextFieldCarModel = new JTextField();
					jPanel1.add(jTextFieldCarModel, new GridBagConstraints(2, -1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jTextFieldCarModel.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				}
			}
			{
				jPanel2 = new JPanel();
				GridBagLayout jPanel2Layout = new GridBagLayout();
				jPanel2Layout.rowWeights = new double[] {};
				jPanel2Layout.rowHeights = new int[] {};
				jPanel2Layout.columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1};
				jPanel2Layout.columnWidths = new int[] {69, 6, 163, 24, 10, 6, 7};
				jPanel2.setLayout(jPanel2Layout);
				this.add(jPanel2, new GridBagConstraints(-1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				{
					jLabelManufactorer = new JLabel();
					jPanel2.add(jLabelManufactorer, new GridBagConstraints(0, -1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jLabelManufactorer.setText("Fabricante");
				}
				{
					jTextFieldManufactorer = new JTextField();
					jPanel2.add(jTextFieldManufactorer, new GridBagConstraints(2, -1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jTextFieldManufactorer.setText("");
					jTextFieldManufactorer.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				}
				{
					jLabelYear = new JLabel();
					jPanel2.add(jLabelYear, new GridBagConstraints(4, -1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jLabelYear.setText("Ano");
				}
				{
					jTextFieldYear = new JTextField();
					jPanel2.add(jTextFieldYear, new GridBagConstraints(6, -1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jTextFieldYear.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				}
			}
			{
				jPanel3 = new JPanel();
				this.add(jPanel3, new GridBagConstraints(-1, 11, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				{
					jButtonConfirm = new JButton();
					jPanel3.add(jButtonConfirm);
					jButtonConfirm.setText("Confirma");
				}
				{
					jButtonClear = new JButton();
					jPanel3.add(jButtonClear);
					jButtonClear.setText("Limpa");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public JButton getjButtonClear() {
		return jButtonClear;
	}

	public JButton getjButtonConfirm() {
		return jButtonConfirm;
	}

	public JTextField getjTextFieldYear() {
		return jTextFieldYear;
	}

	public JTextField getjTextFieldCarModel() {
		return jTextFieldCarModel;
	}

	public JTextField getjTextFieldManufactorer() {
		return jTextFieldManufactorer;
	}
}
